<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="org.springframework.security.core.context.SecurityContextHolder" %>
<!-- Locale : ${pageContext.response.locale}
<a href="<c:url value="?language=en" />">EN</a>
<a href="<c:url value="?language=uk" />">UA</a> -->
<% if (SecurityContextHolder.getContext().getAuthentication().getName().equals("_anonymous")) {%>
	<a href="<c:url value="/login.jsp" />">Login</a>
<%} else {%>
	<a href="<c:url value="/" />"><%=  SecurityContextHolder.getContext().getAuthentication().getName()%></a>
	<a href="<c:url value="/j_spring_security_logout" />">Logout</a>
<%} %>